package com.team.ware.controller;

import com.team.util.ResultVo;
import com.team.ware.model.WareQueryVo;
import com.team.ware.service.WareService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by 李红历 on 2022/7/15.
 */
@RestController
@CrossOrigin//支持跨域
@Api(value="WareController" ,description="库房")
@RequestMapping("ware")//统一接口请求地址price
public class WareController {
    @Autowired
    private WareService wareService;
    @PostMapping("queryPage")
    public ResultVo queryPage(@RequestBody WareQueryVo wareQueryVo){
        return wareService.queryPage(wareQueryVo);
    }
}
